﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AttachedFileAdd.ascx.cs" Inherits="AdminX_AttachedFile_AttachedFileAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>

<div>
     <uc1:Alert ID="MessAlert1" runat="server" />
</div>

         
            <div>
                <asp:Label ID="lblTitle" runat="server"    CssClass="text" Text ="Danh sách sản phẩm"></asp:Label>
            </div>
            <div>
                      <asp:DataGrid  ID="dtgProduct" runat="Server" AutoGenerateColumns="False" DataKeyField="PriceID" CellPadding="3"   
       CssClass="grdContainer"  BackColor="White"  BorderColor="#999999" BorderStyle="None" BorderWidth="1px" GridLines="Vertical" OnItemDataBound="dtgProduct_ItemDataBound">
        <HeaderStyle CssClass="grdHeader" BackColor="#698DAD" Font-Bold="True" ForeColor="White"  />
        <AlternatingItemStyle CssClass="grdAlterItem" BackColor="#DCDCDC" />
        <ItemStyle CssClass="grdItem" BackColor="#EEEEEE" ForeColor="Black" />
        <EditItemStyle CssClass="grdEditItem" />
        <SelectedItemStyle CssClass="grdSelectItem" Font-Bold="True" BackColor="#008A8C" ForeColor="White" />
        <Columns>
                <asp:TemplateColumn  HeaderText="STT" >
                    <HeaderStyle Width="30px" ></HeaderStyle >
                    <ItemTemplate>
                         <%# Container.ItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Mã sản phẩm">
                     <HeaderStyle Width="60px" ></HeaderStyle >
                    <ItemTemplate>
                    <div > <asp:Label ID="lblCode"   runat="server"></asp:Label>
                    </div>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Tên Sản phẩm">
                     <HeaderStyle  ></HeaderStyle >
                    <ItemTemplate>
                    <div class="grdItemLeft" > <asp:Label ID="lblProductName"   runat="server"></asp:Label>
                    </div>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Thương hiệu">
                     <HeaderStyle  ></HeaderStyle >
                    <ItemTemplate>
                    <div > <asp:Label ID="lblTradeMark"   runat="server"></asp:Label>
                    </div>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Kích cỡ">
                     <HeaderStyle  ></HeaderStyle >
                    <ItemTemplate>
                    <div > <asp:Label ID="lblSize"   runat="server"></asp:Label>
                    </div>
                    </ItemTemplate>
                </asp:TemplateColumn> 
               <asp:TemplateColumn  HeaderText="Giá">
                     <HeaderStyle Width="100px"   ></HeaderStyle >
                    <ItemTemplate>
                    <div  > <asp:TextBox ID="txtPrice" Text ="0"  runat="server"></asp:TextBox>
                    </div>
                    </ItemTemplate>
                </asp:TemplateColumn> 
               
        </Columns>
           <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
           <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" Mode="NumericPages" />
    </asp:DataGrid>
            </div>
            <p></p>
            <div>
               <asp:Label ID="Label1" runat="server"  Width ="90px"  CssClass="text" Text ="Upload file"></asp:Label>
               <input id ="iptFile" runat="server" type="file" size="30"  class="boxlongest"  />
            </div>
              <div>
               <asp:Label ID="Label3" runat="server"  Width ="90px"  CssClass="text" Text ="File đính kèm"></asp:Label>
               <asp:Label ID="lblAttachedfile" runat="server" Font-Bold="true"    CssClass="text"></asp:Label>
            </div>
            <div>
                <asp:Label ID="Label2" runat="server"  Width ="90px"  CssClass="text" Text ="Ngày hiệu lực"></asp:Label>
                <asp:TextBox ID="txtDateEffect" runat ="server"  ValidationGroup="Input"  ></asp:TextBox>
            </div>
           <div style="padding:5px 0px 5px 90px ">
                <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true" Text ="Kích hoạt" />
        </div>
     

<br />
            
            <asp:Button ID="btnSave" runat ="server" OnClick="btnSave_Click" Text ="Lưu" Width="80px" ValidationGroup="Input"/> &nbsp;&nbsp;&nbsp;
 <asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width ="80px"    OnClick="btnCancel_Click"  /> 

<asp:RequiredFieldValidator ID="rfvDateEffect" runat="server" SetFocusOnError="true"   ControlToValidate="txtDateEffect" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>

<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />
